package src.first;

public class MoreMethod {

    static void staticMethod(){
        System.out.println("执行了staticMethod()方法");
    }

    public int publicMethod(int i){
        System.out.println("执行了publicMethod()方法");
        return i*100;
    }

    protected int protectedMethod(String s,int i){
        System.out.println("执行了protectedMethod()方法");
        return Integer.valueOf(s)+i;
    }

    private String privateMethod(String... strings){
        System.out.println("执行privateMethod()方法");
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < strings.length; i++) {
            builder.append(strings[i]);
        }
        return builder.toString();
    }
}
